<?php
include "../config/config.inc.php";
//connect to mysql database
mysql_connect($host,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");

$query = mysql_query("UPDATE bids SET bid_date = '$_POST[biddate]', bid_amount='$_POST[bidamount]', bid_alternates='$_POST[altamount]', comment='$_POST[comments]', General_con='$_POST[contractor]', city='$_POST[city]', status='$_POST[status]' WHERE bid_id = $_POST[bidid]");
echo "Updated";

mysql_close($con);
?> 

<script type="text/javascript">
<!--
window.location = "/details.php?bidid=<?php echo "$_POST[bidid]" ?>"
//-->
</script>